package com.aizuda.boot.modules.business.negotiation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 合同协商参与者实体类
 * 用于记录协商参与者的查看和确认状态
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("contract_negotiation_participant")
@Schema(description = "合同协商参与者表")
public class ContractNegotiationParticipantEntity {
    
    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "协商实例ID")
    private Integer instanceId;

    @Schema(description = "节点实例ID（如果为空，表示该参与者是旁观者）")
    private Integer nodeInstanceId;

    @Schema(description = "参与者员工ID")
    private Long employeeId;

    @Schema(description = "参与者类型（NODE_PARTICIPANT-节点参与者，OBSERVER-旁观者）")
    private String participantType;

    @Schema(description = "是否查看（0-未查看，1-已查看）")
    private Boolean isViewed;

    @Schema(description = "查看时间")
    private LocalDateTime viewedTime;

    @Schema(description = "是否确认（0-未确认，1-已确认）")
    private Boolean isConfirmed;

    @Schema(description = "确认时间")
    private LocalDateTime confirmedTime;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
} 